package com.lsz.flight_system.repository;

import com.lsz.flight_system.entity.Notice;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface NoticeRepository
        extends JpaRepository<Notice,Long> , JpaSpecificationExecutor<Notice> {

    Notice findNoticeById(Long id);

    List<Notice> findNoticesByBelong(String belong);


}
